

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>OCC.TopExp module &mdash; pythonocc API 0.18 documentation</title>
  

  
  
  
  

  

  
  
    

  

  
  
    <link rel="stylesheet" href="static/css/theme.css" type="text/css" />
  

  

  
        <link rel="index" title="Index"
              href="genindex.html"/>
        <link rel="search" title="Search" href="search.html"/>
    <link rel="top" title="pythonocc API 0.18 documentation" href="index.html"/> 

  
  <script src="static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav" role="document">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="index.html" class="icon icon-home"> pythonocc API
          

          
          </a>

          
            
            
              <div class="version">
                0.18
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <!-- Local TOC -->
              <div class="local-toc"><ul>
<li><a class="reference internal" href="#">OCC.TopExp module</a></li>
</ul>
</div>
            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">pythonocc API</a>
        
      </nav>


      
      <div class="wy-nav-content">
        <div class="rst-content">
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="index.html">Docs</a> &raquo;</li>
        
      <li>OCC.TopExp module</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="sources/OCC.TopExp.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="occ-topexp-module">
<h1>OCC.TopExp module<a class="headerlink" href="#occ-topexp-module" title="Permalink to this headline">¶</a></h1>
<span class="target" id="module-OCC.TopExp"></span><p>This package  provides basic tools to  explore thetopological data structures.* Explorer : A tool to find all sub-shapes of a giventype. e.g. all faces of a solid.* Package methods to map sub-shapes of a shape.Level : PublicAll methods of all classes will be public.</p>
<dl class="class">
<dt id="OCC.TopExp.SwigPyIterator">
<em class="property">class </em><code class="descname">SwigPyIterator</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
<dl class="method">
<dt id="OCC.TopExp.SwigPyIterator.advance">
<code class="descname">advance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.advance" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.TopExp.SwigPyIterator.copy">
<code class="descname">copy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.copy" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.TopExp.SwigPyIterator.decr">
<code class="descname">decr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.decr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.TopExp.SwigPyIterator.distance">
<code class="descname">distance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.distance" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.TopExp.SwigPyIterator.equal">
<code class="descname">equal</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.equal" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.TopExp.SwigPyIterator.incr">
<code class="descname">incr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.incr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.TopExp.SwigPyIterator.next">
<code class="descname">next</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.next" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.TopExp.SwigPyIterator.previous">
<code class="descname">previous</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.previous" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="OCC.TopExp.SwigPyIterator.thisown">
<code class="descname">thisown</code><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.thisown" title="Permalink to this definition">¶</a></dt>
<dd><p>The membership flag</p>
</dd></dl>

<dl class="method">
<dt id="OCC.TopExp.SwigPyIterator.value">
<code class="descname">value</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.SwigPyIterator.value" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="OCC.TopExp.TopExp_Explorer">
<em class="property">class </em><code class="descname">TopExp_Explorer</code><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
<ul class="simple">
<li>Creates an empty explorer, becomes usefull after Init.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td>
</tr>
</tbody>
</table>
<ul class="simple">
<li>Creates an Explorer on the Shape &lt;S&gt;. //! &lt;ToFind&gt; is the type of shapes to search. TopAbs_VERTEX, TopAbs_EDGE, … //! &lt;ToAvoid&gt; is the type of shape to skip in the exploration. If &lt;ToAvoid&gt; is equal or less complex than &lt;ToFind&gt; or if &lt;ToAVoid&gt; is SHAPE it has no effect on the exploration.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>S</strong> (<em>TopoDS_Shape &amp;</em>) – </li>
<li><strong>ToFind</strong> (<em>TopAbs_ShapeEnum</em>) – </li>
<li><strong>ToAvoid</strong> (<em>TopAbs_ShapeEnum</em>) – default value is TopAbs_SHAPE</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p>
</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="OCC.TopExp.TopExp_Explorer.Clear">
<code class="descname">Clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer.Clear" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Clears the content of the explorer. It will return False on More().</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="OCC.TopExp.TopExp_Explorer.Current">
<code class="descname">Current</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer.Current" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the current shape in the exploration. Exceptions Standard_NoSuchObject if this explorer has no more shapes to explore.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="OCC.TopoDS.html#OCC.TopoDS.TopoDS_Shape" title="OCC.TopoDS.TopoDS_Shape">TopoDS_Shape</a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="OCC.TopExp.TopExp_Explorer.Depth">
<code class="descname">Depth</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer.Depth" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the current depth of the exploration. 0 is the shape to explore itself.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)">int</a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="OCC.TopExp.TopExp_Explorer.Destroy">
<code class="descname">Destroy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer.Destroy" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="OCC.TopExp.TopExp_Explorer.Init">
<code class="descname">Init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer.Init" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Resets this explorer on the shape S. It is initialized to search the shape S, for shapes of type ToFind, that are not part of a shape ToAvoid. If the shape ToAvoid is equal to TopAbs_SHAPE, or if it is the same as, or less complex than, the shape ToFind it has no effect on the search.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>S</strong> (<em>TopoDS_Shape &amp;</em>) – </li>
<li><strong>ToFind</strong> (<em>TopAbs_ShapeEnum</em>) – </li>
<li><strong>ToAvoid</strong> (<em>TopAbs_ShapeEnum</em>) – default value is TopAbs_SHAPE</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="OCC.TopExp.TopExp_Explorer.More">
<code class="descname">More</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer.More" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns True if there are more shapes in the exploration.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="OCC.TopExp.TopExp_Explorer.Next">
<code class="descname">Next</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer.Next" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Moves to the next Shape in the exploration. Exceptions Standard_NoMoreObject if there are no more shapes to explore.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="OCC.TopExp.TopExp_Explorer.ReInit">
<code class="descname">ReInit</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer.ReInit" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Reinitialize the exploration with the original arguments.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/2/library/constants.html#None" title="(in Python v2.7)">None</a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="attribute">
<dt id="OCC.TopExp.TopExp_Explorer.thisown">
<code class="descname">thisown</code><a class="headerlink" href="#OCC.TopExp.TopExp_Explorer.thisown" title="Permalink to this definition">¶</a></dt>
<dd><p>The membership flag</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="OCC.TopExp.new_instancemethod">
<code class="descname">new_instancemethod</code><span class="sig-paren">(</span><em>func</em>, <em>inst</em>, <em>cls</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.new_instancemethod" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="OCC.TopExp.register_handle">
<code class="descname">register_handle</code><span class="sig-paren">(</span><em>handle</em>, <em>base_object</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.register_handle" title="Permalink to this definition">¶</a></dt>
<dd><p>Inserts the handle into the base object to
prevent memory corruption in certain cases</p>
</dd></dl>

<dl class="class">
<dt id="OCC.TopExp.topexp">
<em class="property">class </em><code class="descname">topexp</code><a class="headerlink" href="#OCC.TopExp.topexp" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
<dl class="staticmethod">
<dt id="OCC.TopExp.topexp.CommonVertex">
<em class="property">static </em><code class="descname">CommonVertex</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp.CommonVertex" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Finds the vertex &lt;V&gt; common to the two edges &lt;E1,E2&gt;, returns True if this vertex exists. //! Warning: &lt;V&gt; has sense only if the value &lt;True&gt; is returned</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>E1</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>E2</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>V</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.TopExp.topexp.FirstVertex">
<em class="property">static </em><code class="descname">FirstVertex</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp.FirstVertex" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the Vertex of orientation FORWARD in E. If there is none returns a Null Shape. CumOri = True : taking account the edge orientation</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>E</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>CumOri</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_False</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference internal" href="OCC.TopoDS.html#OCC.TopoDS.TopoDS_Vertex" title="OCC.TopoDS.TopoDS_Vertex">TopoDS_Vertex</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.TopExp.topexp.LastVertex">
<em class="property">static </em><code class="descname">LastVertex</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp.LastVertex" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the Vertex of orientation REVERSED in E. If there is none returns a Null Shape. CumOri = True : taking account the edge orientation</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>E</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>CumOri</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_False</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference internal" href="OCC.TopoDS.html#OCC.TopoDS.TopoDS_Vertex" title="OCC.TopoDS.TopoDS_Vertex">TopoDS_Vertex</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.TopExp.topexp.MapShapes">
<em class="property">static </em><code class="descname">MapShapes</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp.MapShapes" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Tool to explore a topological data structure. Stores in the map &lt;M&gt; all the sub-shapes of &lt;S&gt; of type &lt;T&gt;. //! Warning: The map is not cleared at first.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>S</strong> (<em>TopoDS_Shape &amp;</em>) – </li>
<li><strong>T</strong> (<em>TopAbs_ShapeEnum</em>) – </li>
<li><strong>M</strong> (<em>TopTools_IndexedMapOfShape &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
<ul class="simple">
<li>Stores in the map &lt;M&gt; all the sub-shapes of &lt;S&gt;.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>S</strong> (<em>TopoDS_Shape &amp;</em>) – </li>
<li><strong>M</strong> (<em>TopTools_IndexedMapOfShape &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.TopExp.topexp.MapShapesAndAncestors">
<em class="property">static </em><code class="descname">MapShapesAndAncestors</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp.MapShapesAndAncestors" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Stores in the map &lt;M&gt; all the subshape of &lt;S&gt; of type &lt;TS&gt; for each one append to the list all the ancestors of type &lt;TA&gt;. For example map all the edges and bind the list of faces. Warning: The map is not cleared at first.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>S</strong> (<em>TopoDS_Shape &amp;</em>) – </li>
<li><strong>TS</strong> (<em>TopAbs_ShapeEnum</em>) – </li>
<li><strong>TA</strong> (<em>TopAbs_ShapeEnum</em>) – </li>
<li><strong>M</strong> (<em>TopTools_IndexedDataMapOfShapeListOfShape &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.TopExp.topexp.Vertices">
<em class="property">static </em><code class="descname">Vertices</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp.Vertices" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns in Vfirst, Vlast the FORWARD and REVERSED vertices of the edge &lt;E&gt;. May be null shapes. CumOri = True : taking account the edge orientation</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>E</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>Vfirst</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
<li><strong>Vlast</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
<li><strong>CumOri</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_False</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
<ul class="simple">
<li>Returns in Vfirst, Vlast the first and last vertices of the open wire &lt;W&gt;. May be null shapes. if &lt;W&gt; is closed Vfirst and Vlast are a same vertex on &lt;W&gt;. if &lt;W&gt; is no manifold. VFirst and VLast are null shapes.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>W</strong> (<em>TopoDS_Wire &amp;</em>) – </li>
<li><strong>Vfirst</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
<li><strong>Vlast</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="attribute">
<dt id="OCC.TopExp.topexp.thisown">
<code class="descname">thisown</code><a class="headerlink" href="#OCC.TopExp.topexp.thisown" title="Permalink to this definition">¶</a></dt>
<dd><p>The membership flag</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="OCC.TopExp.topexp_CommonVertex">
<code class="descname">topexp_CommonVertex</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp_CommonVertex" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Finds the vertex &lt;V&gt; common to the two edges &lt;E1,E2&gt;, returns True if this vertex exists. //! Warning: &lt;V&gt; has sense only if the value &lt;True&gt; is returned</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>E1</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>E2</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>V</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.TopExp.topexp_FirstVertex">
<code class="descname">topexp_FirstVertex</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp_FirstVertex" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the Vertex of orientation FORWARD in E. If there is none returns a Null Shape. CumOri = True : taking account the edge orientation</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>E</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>CumOri</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_False</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference internal" href="OCC.TopoDS.html#OCC.TopoDS.TopoDS_Vertex" title="OCC.TopoDS.TopoDS_Vertex">TopoDS_Vertex</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.TopExp.topexp_LastVertex">
<code class="descname">topexp_LastVertex</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp_LastVertex" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the Vertex of orientation REVERSED in E. If there is none returns a Null Shape. CumOri = True : taking account the edge orientation</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>E</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>CumOri</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_False</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference internal" href="OCC.TopoDS.html#OCC.TopoDS.TopoDS_Vertex" title="OCC.TopoDS.TopoDS_Vertex">TopoDS_Vertex</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.TopExp.topexp_MapShapes">
<code class="descname">topexp_MapShapes</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp_MapShapes" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Tool to explore a topological data structure. Stores in the map &lt;M&gt; all the sub-shapes of &lt;S&gt; of type &lt;T&gt;. //! Warning: The map is not cleared at first.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>S</strong> (<em>TopoDS_Shape &amp;</em>) – </li>
<li><strong>T</strong> (<em>TopAbs_ShapeEnum</em>) – </li>
<li><strong>M</strong> (<em>TopTools_IndexedMapOfShape &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
<ul class="simple">
<li>Stores in the map &lt;M&gt; all the sub-shapes of &lt;S&gt;.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>S</strong> (<em>TopoDS_Shape &amp;</em>) – </li>
<li><strong>M</strong> (<em>TopTools_IndexedMapOfShape &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.TopExp.topexp_MapShapesAndAncestors">
<code class="descname">topexp_MapShapesAndAncestors</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp_MapShapesAndAncestors" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Stores in the map &lt;M&gt; all the subshape of &lt;S&gt; of type &lt;TS&gt; for each one append to the list all the ancestors of type &lt;TA&gt;. For example map all the edges and bind the list of faces. Warning: The map is not cleared at first.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>S</strong> (<em>TopoDS_Shape &amp;</em>) – </li>
<li><strong>TS</strong> (<em>TopAbs_ShapeEnum</em>) – </li>
<li><strong>TA</strong> (<em>TopAbs_ShapeEnum</em>) – </li>
<li><strong>M</strong> (<em>TopTools_IndexedDataMapOfShapeListOfShape &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.TopExp.topexp_Vertices">
<code class="descname">topexp_Vertices</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.TopExp.topexp_Vertices" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns in Vfirst, Vlast the FORWARD and REVERSED vertices of the edge &lt;E&gt;. May be null shapes. CumOri = True : taking account the edge orientation</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>E</strong> (<em>TopoDS_Edge &amp;</em>) – </li>
<li><strong>Vfirst</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
<li><strong>Vlast</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
<li><strong>CumOri</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – default value is Standard_False</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
<ul class="simple">
<li>Returns in Vfirst, Vlast the first and last vertices of the open wire &lt;W&gt;. May be null shapes. if &lt;W&gt; is closed Vfirst and Vlast are a same vertex on &lt;W&gt;. if &lt;W&gt; is no manifold. VFirst and VLast are null shapes.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>W</strong> (<em>TopoDS_Wire &amp;</em>) – </li>
<li><strong>Vfirst</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
<li><strong>Vlast</strong> (<em>TopoDS_Vertex &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

</div>


           </div>
           <div class="articleComments">
            
           </div>
          </div>
          <footer>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2017, Thomas Paviot.

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'./',
            VERSION:'0.18',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true,
            SOURCELINK_SUFFIX: '.txt'
        };
    </script>
      <script type="text/javascript" src="static/jquery.js"></script>
      <script type="text/javascript" src="static/underscore.js"></script>
      <script type="text/javascript" src="static/doctools.js"></script>

  

  
  
    <script type="text/javascript" src="static/js/theme.js"></script>
  

  
  
  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.StickyNav.enable();
      });
  </script>
   

</body>
</html>